<?php $this->load->view('include/header'); ?>

<?php
	echo "<table border='1'>";
//	echo $rows['firstname']; 
	foreach ($rows as $r){
		echo "<tr>";
		echo "<td>Name</td>";
		echo "<th>".$r->firstname." ".$r->lastname."</th>";
		echo "</tr>";
		
		echo "<tr>";
		echo "<td>Mark</td>";
		echo "<th>".$r->mark."</th>";
		echo "</tr>";
		
		echo "<tr>";
		echo "<td>Training mark</td>";
		echo "<th>".$r->training_mark."</th>";
		echo "</tr>";
		
		echo "<tr>";
		echo "<td>Class</td>";
		echo "<th>".$r->class."</th>";
		echo "</tr>";
	}
	echo "</table>";
	
	if ($this->session->userdata('user_type') == 2){
		if ($status == 1){
		echo anchor('teacher/decide/'.'1','Accept');
		echo anchor('teacher/decide/'.'2','Reject');
		} else if ($status == 2)
			echo anchor('teacher/decide/'.'2','Reject');
		else 
			echo anchor('teacher/decide/'.'1','Accept');	
	}	
?>

<?php $this->load->view('include/footer'); ?>
